﻿@model MvcApplication1.Models.Producto
@{ 
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
    ViewBag.Title = "Editar";
}

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend  style="font-size:20px; color: cornflowerblue; border-color:cornflowerblue;">Producto</legend>

        @Html.HiddenFor(model => model.id)
        <br />
        <div class="letrapfn" style="font-size:18px; color:lightblue;"> Artículo</div>
        <div class="letrapfn" style="font-size:18px;">
            @Html.EditorFor(model => model.nombre)
            @Html.ValidationMessageFor(model => model.nombre)
        </div>
        <br />
      
        <div class="letrapfn" style="font-size:18px; color:lightblue;">
            Modelo
        </div>
        <div class="letrapfn" style="font-size:18px; ">
            @Html.EditorFor(model => model.modelo)
            @Html.ValidationMessageFor(model => model.modelo)
        </div>
        <br />
        <div class="letrapfn" style="font-size:18px; color:lightblue;">
            Marca
        </div>
        <div class="letrapfn" style="font-size:18px; ">
            @Html.EditorFor(model => model.marca)
            @Html.ValidationMessageFor(model => model.marca)
        </div>
        <br />
        <div class="letrapfn" style="font-size:18px; color:lightblue;">
            Precio
        </div>
        <div class="letrapfn" style="font-size:18px; ">
            @Html.EditorFor(model => model.precio)
            @Html.ValidationMessageFor(model => model.precio)
        </div>
        <br />
        <div class="letrapfn" style="font-size:18px; color:lightblue;">
            Descripción
        </div>
        <div class="letrapfn" style="font-size:18px;">
            @Html.EditorFor(model => model.descripcion)
            @Html.ValidationMessageFor(model => model.descripcion)
        </div>
        <br />
        <div class="letrapfn" style="font-size:18px; color:lightblue;">
           Foto
        </div>
        <div class="letrapfn" style="font-size:18px;">
            @Html.EditorFor(model => model.foto)
            @Html.ValidationMessageFor(model => model.foto)
        </div>
        <br />
        <p>
            <input type="submit" value="Guardar" class="pure-button"  style="font-size:18px;"/>
        </p>
    </fieldset>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
